package com.printeverywhere.dto;

/**
 * ItemAuctionImageId entity.
 *
 * @author MyEclipse Persistence Tools
 */

public class ItemAuctionImageId implements java.io.Serializable {

	// Fields

	private Items items;
	private User user;
	private String imagePath;
	private String contentType;

	// Constructors

	/** default constructor */
	public ItemAuctionImageId() {
	}

	/** minimal constructor */
	public ItemAuctionImageId(Items items, User user) {
		this.items = items;
		this.user = user;
	}

	/** full constructor */
	public ItemAuctionImageId(Items items, User user, String imagePath) {
		this.items = items;
		this.user = user;
		this.imagePath = imagePath;
	}

	// Property accessors

	public Items getItems() {
		return this.items;
	}

	public void setItems(Items items) {
		this.items = items;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getImagePath() {
		return this.imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ItemAuctionImageId))
			return false;
		ItemAuctionImageId castOther = (ItemAuctionImageId) other;

		return ((this.getItems() == castOther.getItems()) || (this.getItems() != null
				&& castOther.getItems() != null && this.getItems().equals(
				castOther.getItems())))
				&& ((this.getUser() == castOther.getUser()) || (this.getUser() != null
						&& castOther.getUser() != null && this.getUser()
						.equals(castOther.getUser())))
				&& ((this.getImagePath() == castOther.getImagePath()) || (this
						.getImagePath() != null
						&& castOther.getImagePath() != null && this
						.getImagePath().equals(castOther.getImagePath())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getItems() == null ? 0 : this.getItems().hashCode());
		result = 37 * result
				+ (getUser() == null ? 0 : this.getUser().hashCode());
		result = 37 * result
				+ (getImagePath() == null ? 0 : this.getImagePath().hashCode());
		return result;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

}